package com.vivz.baby.task;

import com.vivz.baby.persistence.model.Log;
import com.vivz.baby.proxy.LogProxy;

import android.os.AsyncTask;

public class AddLogTask extends AsyncTask<Object, Void, Void> {

    @Override
    protected Void doInBackground(Object... params) {
        
        if (params != null && //
                params.length == 2 && //
                params[0] instanceof String && //
                params[1] instanceof Log) {

            String url = (String) params[0];
            Log log = (Log) params[1];
            LogProxy.logData(url, log);
        }
        
        return null;
    }
}
